/**
 * 
 */
package org.cuatrovientos.conditional;

import java.util.Scanner;

/**
 * Simple class to test conditional structures
 * @author alouis_fernandez
 *
 */
public class IfConditional {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int number = 0;
		String line = ""; /* to store what i read from console */
		
		// Special object to read from console
		Scanner reader = new Scanner(System.in);
		
		System.out.println("Please enter a number");
		line = reader.nextLine();
		
		// Convert String to integer
		number = Integer.parseInt(line);
		
		if (number > 0) {
			System.out.println(number + " is bigger than 0");
		} else {
			if (number < 0) {
				System.out.println(number + " is negative");
			} else {
				System.out.println(number + " is 0");
			}
			
		}
		
	}

}
